package com.jason.lucene.example;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author he peng
 * @create 2017/12/5 10:53
 * @see
 */
public class LuceneInActionSampleData {

    public static List<Map<String , String>> INIT_DATAS;

    static {
        INIT_DATAS = new ArrayList<>(15);
        Map<String , String> m1 = new HashMap<>(3);
        m1.put("title" , "A Modern Art of Education");
        m1.put("author" , "Rudolf Steiner");
        m1.put("category" , "/教育/教学");
        m1.put("subject" , "education philosophy psychology practice Waldorf");
        m1.put("readTime","2004-01-01 01:23:16");
        INIT_DATAS.add(m1);

        Map<String , String> m2 = new HashMap<>(3);
        m2.put("title" , "Lipitor,Thief of Memory");
        m2.put("author" , "Duane Graveline,Kilmer S.McCully,Jay S.Cohen");
        m2.put("category" , "/健康");
        m2.put("subject" , "cholesterol,statin,lipitor");
        m2.put("readTime","2005-03-06 16:16:16");
        INIT_DATAS.add(m2);

        Map<String , String> m3 = new HashMap<>(3);
        m3.put("title" , "Nudge:Improving Decisions About Health,Wealth,and Happiness");
        m3.put("author" , "Richard H.Thaler, Cass R.Sunstein");
        m3.put("category" , "/健康");
        m3.put("subject" , "information architecture,decisions,choices");
        m3.put("readTime","2006-03-22 15:12:56");
        INIT_DATAS.add(m3);

        Map<String , String> m4 = new HashMap<>(3);
        m4.put("title" , "Imperial Secrets of Health and Longevity");
        m4.put("author" , "Bob Flaws");
        m4.put("category" , "/健康/可选/中文");
        m4.put("subject" , "diet chinese medicine qi gong health herbs");
        m4.put("readTime","2007-12-18 15:12:56");
        INIT_DATAS.add(m4);

        Map<String , String> m5 = new HashMap<>(3);
        m5.put("title" , "Tao Te Ching 道德经");
        m5.put("author" , "Stephen Mitchell");
        m5.put("category" , "/哲学/东方");
        m5.put("subject" , "taoism");
        m5.put("readTime","2008-08-18 15:12:56");
        INIT_DATAS.add(m5);

        Map<String , String> m6 = new HashMap<>(3);
        m6.put("title" , "Algorithms Fourth Edition");
        m6.put("author" , "Robert Sedgewick,Kevin Wayne");
        m6.put("category" , "/科技/计算机/算法");
        m6.put("subject" , "programming algorithm");
        m6.put("readTime","2009-07-18 15:12:56");
        INIT_DATAS.add(m6);

        Map<String , String> m7 = new HashMap<>(3);
        m7.put("title" , "Godel,Escher,Bach:an Eternal Golden Braid");
        m7.put("author" , "Douglas Hofstadter");
        m7.put("category" , "/科技/计算机/人工智能");
        m7.put("subject" , "artificial intelligence number theory mathematics music");
        m7.put("readTime","2010-07-18 15:12:56");
        INIT_DATAS.add(m7);

        Map<String , String> m8 = new HashMap<>(3);
        m8.put("title" , "Mindstorms:Children,Computers,And Powerful Ideas");
        m8.put("author" , "Seymour Papert");
        m8.put("category" , "/科技/计算机/编程/教育");
        m8.put("subject" , "children computers powerful ideas LOGO education");
        m8.put("readTime","2011-11-08 13:39:11");
        INIT_DATAS.add(m8);

        Map<String , String> m9 = new HashMap<>(3);
        m9.put("title" , "Ant in Action");
        m9.put("author" , "Steve Loughran,Erik Hatcher");
        m9.put("category" , "/科技/计算机/编程");
        m9.put("subject" , "apache ant build tool junit java development");
        m9.put("readTime","2012-07-22 03:39:11");
        INIT_DATAS.add(m9);

        Map<String , String> m10 = new HashMap<>(3);
        m10.put("title" , "JUnit in Action,Second Edition");
        m10.put("author" , "Petar Tahchiev,Felipe Leme,Vincent Massol,Gary Gregory");
        m10.put("category" , "/科技/计算机/编程");
        m10.put("subject" , "junit unit testing mock objects");
        m10.put("readTime","2013-09-19 22:09:28");
        INIT_DATAS.add(m10);

        Map<String , String> m11 = new HashMap<>(3);
        m11.put("title" , "Lucene in Action,Second Edition");
        m11.put("author" , "Michael McCandless,Erik Hatcher,Otis Gospodnetic");
        m11.put("category" , "/科技/计算机/编程");
        m11.put("subject" , "lucene search java");
        m11.put("readTime","2014-06-06 15:22:28");
        INIT_DATAS.add(m11);

        Map<String , String> m12 = new HashMap<>(3);
        m12.put("title" , "Extreme Programming Explained");
        m12.put("author" , "Kent Beck");
        m12.put("category" , "/科技/计算机/编程/方法论");
        m12.put("subject" , "extreme programming agile test driven development methodology");
        m12.put("readTime","2015-01-23 18:56:28");
        INIT_DATAS.add(m12);

        Map<String , String> m13 = new HashMap<>(3);
        m13.put("title" , "Tapestry in Action");
        m13.put("author" , "Howard Lewis-Ship");
        m13.put("category" , "/科技/计算机/编程");
        m13.put("subject" , "tapestry web user interface components");
        m13.put("readTime","2016-09-06 08:36:08");
        INIT_DATAS.add(m13);

        Map<String , String> m14 = new HashMap<>(3);
        m14.put("title" , "The Pragmatic Programmer");
        m14.put("author" , "Dave Thomas , Andy Hunt");
        m14.put("category" , "/科技/计算机/编程");
        m14.put("subject" , "pragmatic agile methodology developer tools");
        m14.put("readTime","20171206 15:36:08");
        INIT_DATAS.add(m14);

        INIT_DATAS = Collections.unmodifiableList(INIT_DATAS);
    }

}
